#if(state == "0")
  #set(name = sendname)
  #set(phone = sendphone)
   #set(card = sendcard)
  #set(address = com.wx.util.JfinalStaticUtil::splitStr(sendadd,'^'))
#elseif(state == "1")
  #set(name = receivename)
  #set(phone = receivephone)
  #set(card = receivecard)
   #set(address = com.wx.util.JfinalStaticUtil::splitStr(receiveadd,'^'))
#elseif(state == "3")
  #set(name = receivename)
  #set(phone = receivephone)
  #set(card = receivecard)
  #set(address = com.wx.util.JfinalStaticUtil::splitStr(receiveadd,'^'))
#else
#end
#define layout()
#@_jsscss()
<script src="/wx/js/picker.js"></script>
#if(session.BNORDER)
<script src="/wx/js/city3.js"></script>
#else
#if(state == "0")
  <script src="/wx/js/city2.js"></script>
#elseif(state == "1")
 <script src="/wx/js/city.js"></script>
#elseif(state == "3")
  <script src="/wx/js/city.js"></script>
#else
<script src="/wx/js/city.js"></script>
#end
#end
<title>地址列表</title>
<style type="text/css">
	.w3000{
		margin-right: 50px;
	}
	.ui-form-item input, .ui-form-item textarea{
    font-size: 14px;
  	color: #666;
	}
	.ui-form{
	border-bottom: 0.5px solid #E0E0E0;
	}
</style>
<link href="/wx/css/picker.css" rel="stylesheet" />
<script>
	function picker3() {
        var nowValue = document.getElementById('nowValue');
        new Picker({
            "title": '请选择',//标题(可选)
            "defaultValue": nowValue.value,//默认值-多个以空格分开（可选）
            "data":cityData,//数据(必传)
            "keys": {
                "id": "Code",
                "value": "Name",
                "childData": "level"//最多3级联动
            },//数组内的键名称(必传，id、text、data)
            "callBack": function (val) {
                //回调函数（val为选择的值）
                nowValue.value = val;
            }
        });
    }
</script>
</head>
<body>
<div class="centerMain">
	    <form id="form" action="/wxorder/editAdd?appid=#(session.appid)" method="post">
	      	<input type="hidden" name = "receivename" value = "#(receivename)" />
	      	<input type="hidden" name = "receivephone" value = "#(receivephone)" />
	      	<input type="hidden" name = "receiveadd" value = "#(receiveadd)" />
	      	<input type="hidden" name = "receivecard" value = "#(receivecard)" />
	      	<input type="hidden" name = "sendcard" value = "#(sendcard)" />
	      	<input type="hidden" name = "sendname" value = "#(sendname)" />
	        	<input type="hidden" name = "sendphone" value = "#(sendphone)" />
	      	<input type="hidden" name = "sendadd" value = "#(sendadd)" />
	      	<input type="hidden" name = "state" value = "#(state)" />
	      	<input type="hidden" name = "addid" value = "#(addid)" />
		    <div class="mt10 ui-form">
		    		<div class="ui-form-item" style="line-height:44px;padding-left: 20px;float:left;">
		            姓名
		        </div>
		        <div class="ui-form-item" style="line-height:44px;padding-left: 20px;text-align:right;float:right;width:70%;">
		            <input class="w300" style="text-align:right;padding-right:10px;padding-left:0px;" type="text" id="name" name="name" value="#(name)" >
		        </div>
		        <div style="clear:both;height:0px;"></div>
		    </div>
		    <div class="ui-form">
		        <div class="ui-form-item" style="line-height:44px;padding-left: 20px;float:left;">
		            联系电话
		        </div>
		        <div class="ui-form-item" style="line-height:44px;padding-left: 20px;text-align:right;float:right;width:70%;">
		            <input class="w300" style="text-align:right;padding-right:10px;padding-left:0px;" type="number" max="11" id="mobile" name="mobile" value="#(phone)" >
		        </div>
		        <div style="clear:both;height:0px;"></div>
		    </div>
		    #if(session.BNORDER)
		    <div class="ui-form">
		        <div class="ui-form-item" style="line-height:44px;padding-left: 20px;float:left;">
		            身份证号:
		        </div>
		        <div class="ui-form-item" style="line-height:44px;padding-left: 20px;text-align:right;float:right;width:70%;">
		            <input class="w300" maxlength="18" style="text-align:right;padding-right:10px;padding-left:0px;" id="mobile" name="card" value="#(card)" >
		        </div>
		        <div style="clear:both;height:0px;"></div>
		    </div>
		    #end
		    <div class="ui-form">
		        <div class="ui-form-item" style="line-height:44px;padding-left: 20px;float:left;">
		            收件地区
		        </div>
		        <div class="ui-form-item" style="line-height:44px;padding-left: 20px;text-align:right;float:right;width:70%;">
		            <input  onclick="picker3()" class="w300" style="text-align:right;padding-right:10px;padding-left:0px;" type="text" id="nowValue" name="pro_city_dis" value="#(address[0] ?? "")" >
		            
		        </div>
		        <div style="clear:both;height:0px;"></div>
		    </div>
		    <div class="ui-form">
		        <div class="ui-form-item" style="line-height:44px;padding-left: 20px;float:left;">
		            详细地址
		        </div>
		        <div class="ui-form-item" style="line-height:44px;padding-left: 20px;text-align:right;float:right;width:100%;">
		        	<textarea name="address" style="height:100px;padding-right:10px;padding-left:0px;" warp="virtual" >#(address[1] ?? "")</textarea>
		        </div>
		        <div style="clear:both;height:0px;"></div>
		    </div>
		    #if(state =="0")
		    <div class="" style="padding: 15px 16px;line-height:20px;">
            	<li>
                <input tabindex="3"  type="radio" id="input-3" name="isdefault" ">设为默认寄件人地址
              </li>
            </div>
		    #end
		    <div class="ui-btn-wrap mt20 ui-form">
		        <input id="Submit1" type="button" class="ui-btn-lg ui-btn-success" onclick="return $('#form').submit();" value="确认" />
		    </div>
        </form>
</div>
<div class="clear"></div>

</body>
</html>
#end
#@layout()